/*
 * @Description:
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-07-03 16:49:39
 * @FilePath: /yuxiuproweb/src/api/material/record/index.js
 */
import request from "@/utils/request";

// 查询库存扣减记录列表
export function listRecord(query) {
  return request({
    url: "/md/record/list",
    method: "get",
    params: query,
  });
}

// 查询库存扣减记录详细
export function getRecord(inventoryDeductionRecordId) {
  return request({
    url: "/md/record/" + inventoryDeductionRecordId,
    method: "get",
  });
}

// 新增库存扣减记录
export function addRecord(data) {
  return request({
    url: "/md/record",
    method: "post",
    data: data,
  });
}

// 修改库存扣减记录
export function updateRecord(data) {
  return request({
    url: "/md/record",
    method: "put",
    data: data,
  });
}

// 删除库存扣减记录
export function delRecord(inventoryDeductionRecordId) {
  return request({
    url: "/md/record/" + inventoryDeductionRecordId,
    method: "delete",
  });
}
